import {request} from 'network/request.js'
export function categoryGetAll(){
  return request({
<<<<<<< HEAD
    url:'http://152.136.185.210:7878/api/m5/category'
=======
    url:'/category'
>>>>>>> 84093be (second)
  })
}
export function categoryGetData(maitKey){
  return request({
<<<<<<< HEAD
    url: 'http://152.136.185.210:7878/api/m5/subcategory',
=======
    url: '/subcategory',
>>>>>>> 84093be (second)
    params:{
      maitKey
    }
  })
}
export function categoryGetDetail(miniWallkey,type){
  return request({
<<<<<<< HEAD
    url:'http://152.136.185.210:7878/api/m5/subcategory/detail',
=======
    url:'/subcategory/detail',
>>>>>>> 84093be (second)
    params: {
      miniWallkey,
      type
    }
  })
}
export class leftData{
  constructor(info) {
      this.imgUrl=info.acm;
      this.name=info.title;
      this.inferiorID=info.miniWallkey;
      this.goodsID=info.maitKey;
  }
}

// import { request } from './request'

// export function getCategory() {
//   return request({
//     url: 'http://152.136.185.210:7878/api/m5/category'
//   })
// }

// export function getSubcategory(maitKey) {
//   return request({
//     url: 'http://152.136.185.210:7878/api/m5/subcategory',
//     params: {
//       maitKey
//     }
//   })
// }

// export function getCategoryDetail(miniWallkey, type) {
//   return request({
//     url: 'http://152.136.185.210:7878/api/m5/subcategory/detail',
//     params: {
//       miniWallkey,
//       type
//     }
//   })
// }
